package qdu.rg05.ch1_intent_adv;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import androidx.annotation.Nullable;

public class Act_end extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ly_actend);
        //获取intent对象
        Intent myit = this.getIntent();
        Log.i("mytag",myit.getExtras().getString("msg1"));
        Log.i("mytag", String.valueOf(myit.getExtras().getInt("msg2")));
        //Log.i("mytag", myit.getStringExtra("msg1"));
        //Log.i("mytag", String.valueOf(myit.getIntExtra("msg2", 0)));
    }
}
